package com.heima.article.controller.v1;

import com.heima.article.service.ApUserBehaviorService;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Tangguo
 * @Date: 2023-06-23  17:43
 */
@RestController
@RequestMapping("/api/v1/")
public class ApUserBehaviorController {

    @Autowired
    private ApUserBehaviorService apUserBehaviorService;

    /**
     * 收藏
     * @param dto
     * @return
     */
    @PostMapping("/collection_behavior")
    public ResponseResult collection(@RequestBody CollectionBehaviorDto dto) {
        return apUserBehaviorService.collection(dto);
    }


}
